<?
global $SUPER_PUPER_PEREMENNAYA_DLA_ARRFILTR;
$SUPER_PUPER_PEREMENNAYA_DLA_ARRFILTR=true;
function cMake($arrItem){
	foreach($arrItem as $name=>$value):
		if (is_array($value)):
			?>
			<li class="close">
				<div onClick="OpenMenuNode(this)" class="folder"></div>
				<div class="item-text"><b>[<?=htmlspecialchars($name);?>]</b></div>
			<ul>
			<?
			cMake($value);
			?>
			</ul>
			<?
		else:
			?>
			
			<li>
				<div class="page"></div>
				<div class="item-text">[<?=htmlspecialchars($name);?>] =&gt; <?=htmlspecialchars($value);?></div>
			</li>
			
			
			<?
		endif;
	
	endforeach;
}

function arrprint($arrEnter){
	global $SUPER_PUPER_PEREMENNAYA_DLA_ARRFILTR;
	if ($SUPER_PUPER_PEREMENNAYA_DLA_ARRFILTR):
		$SUPER_PUPER_PEREMENNAYA_DLA_ARRFILTR=false;
	?>
<!---
	<html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
--->
    <link href="/include/arrprint/style.css" type="text/css" rel="stylesheet" />
    <script language="javascript" src="/include/arrprint/script.js" ></script>
<!---
    </head>
    <body>
--->
	<? endif;?>
<div class="menu-sitemap-tree">
<ul>


<?
cMake(array("array"=>$arrEnter) );
?>
    
	
	</ul>
</div>
<!---

</body></html>--->
	<?
	}
?>